package com.asia5b.a5mall.middleware.model.member

import com.asia5b.a5mall.middleware.model.base.BaseModel
import com.asia5b.a5mall.middleware.widget.popup.PopupItemTextInterface
import com.google.gson.annotations.SerializedName
import java.io.Serializable

/**
 * Created by zhangyuncai on 2019/12/21.
 * @Note   地区ViewModel
 */
class RegionModel : BaseModel(), PopupItemTextInterface {

    @SerializedName(value = "typeId", alternate = ["region_grade"])
    val typeId = 0

    @SerializedName(value = "name", alternate = ["local_name"])
    val name = ""

    val id = 0

    @SerializedName(value = "pid", alternate = ["parent_id"])
    val pid = 0
    override fun getText(): String {
        return name
    }

}